package pref.junx.flybird.tools;

import android.content.Context;
import android.content.Intent;

import pref.junx.flybird.activity.MainActivity;


/**
 * Created by 半生瓜 on 2017/7/20.
 */

public class JumpUtil {


    public static void toMain(Context context){
        Intent intent=new Intent(context,MainActivity.class);
        context.startActivity(intent);
    }
    public  static void to(Context context,Class  c){
        Intent intent=new Intent(context,c);
        context.startActivity(intent);
    }


    public  static void toByValue(Context context,Class  c,String key ,String value){
        Intent intent=new Intent(context,c);
        intent.putExtra(key,value);
        context.startActivity(intent);
    }


}
